Platform Explorer / Nuxeo Platform 2021.64

Component org.nuxeo.ecm.platform.comment.lifecycle

Resolution Order

312
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.lifecycle">

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
      point="lifecycle">

    <lifecycle name="comment_moderation" defaultInitial="moderation_pending">

      <transitions>
        <transition name="moderation_publish" destinationState="moderation_published">
          <description>Approve the comment</description>
        </transition>
        <transition name="moderation_reject" destinationState="moderation_rejected">
          <description>Reject the comment</description>
        </transition>
      </transitions>
      <states>
        <state name="moderation_pending" description="Default state">
          <transitions>
            <transition>moderation_publish</transition>
            <transition>moderation_reject</transition>
          </transitions>
        </state>
        <state name="moderation_published" description="Comment published"/>
        <state name="moderation_rejected" description="Comment Rejected"/>
      </states>

    </lifecycle>

  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
      point="types">
    <types>
      <type name="Comment">comment_moderation</type>
    </types>
  </extension>

</component>